package com.paas.form.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.paas.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("form_task")
@ApiModel(value="FormTask对象", description="")
public class FormTaskEntity extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "主键")
	@TableId
	private String id;

	@ApiModelProperty(value = "任务名称")
	@TableField("task_name")
	private String taskName;

	@ApiModelProperty(value = "模型id")
	@TableField("model_id")
	private String modelId;

	@ApiModelProperty(value = "任务type")
	@TableField("task_type")
	private String taskType;

	@ApiModelProperty(value = "数据来源类型")
	@TableField("source_type")
	private String sourceType;

	@ApiModelProperty(value = "条件配置")
	@TableField("condition_form")
	private String conditionForm;

	@ApiModelProperty(value = "映射表")
	@TableField("table_name")
	private String tableName;

	@ApiModelProperty(value = "操作类型")
	@TableField("operation_type")
	private String operationType;

	@ApiModelProperty(value = "模型名称")
	@TableField(exist = false)
	private String modelName;

	@ApiModelProperty(value = "数据源id")
	@TableField("database_id")
	private String databaseId;

	@ApiModelProperty(value = "视图id")
	@TableField("view_id")
	private String viewId;

	@ApiModelProperty(value = "视图名称")
	@TableField(exist = false)
	private String viewName;

	@ApiModelProperty(value = "描述")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "组织id")
	@TableField("org_id")
	private String orgId;

	@ApiModelProperty(value = "修改人")
	@TableField("modify_id")
	private String modifyId;

	@ApiModelProperty(value = "创建人")
	@TableField(exist = false)
	private String createName;

	@ApiModelProperty(value = "数据状态")
	@TableField("status")
	private String status;

	@ApiModelProperty(value = "应用id")
	@TableField("app_id")
	private String appId;

}